package date1128.beanId;

import java.sql.SQLException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

/**
 * @author Yue
 * @date 2017年11月28日 下午4:08:11
 */
public class BeanTest {
	private static ApplicationContext applicationContext;

	public static void main(String[] args) throws SQLException {
		applicationContext = new ClassPathXmlApplicationContext(Resource.getAssertPath(BeanTest.class, "beans.xml"));
		
		Daniu daniu = applicationContext.getBean("daniuxx",Daniu.class);
		daniu.info();
		
		
	}
}
